<template>
  <div>
    <Title
      minTitle="计费"
      title="账户信息"
      introduce="展示当前账户的剩余消息额度，可根据兑换码兑换消息额度。"
    >
    </Title>
    <div class="title-bottom">
      <p>
        <i class="iconfont icon-info"></i>
        目前计费功能暂不完善，所以计费功能暂未正式启用。
      </p>
      <p>
        <i class="iconfont icon-info"></i>
        正式收费后，我们将发送通知至首页公告;在此期间，若有欠费情况可联系我们:发送邮件至
        <a href="#">sensecap@seeed.cc</a>
      </p>
      <a href="#">点击查看具体收费规则</a>
    </div>
    <div class="center">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span><i class="iconfont icon-info"></i>设备预览</span>
        </div>
        <div class="msg">
          <span>计划：</span>
          <span>按量付费</span>
        </div>
        <div class="msg">
          <span>状态：</span>
          <span>正常</span>
        </div>
      </el-card>
    </div>
    <div class="center">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span><i class="iconfont icon-info"></i>设备预览</span>
        </div>
        <div class="chongzhi-block">
          <el-form :model="form" label-width="80px">
            <el-form-item label="账户余额:" style="font-w">
              <span>￥12340000</span>
            </el-form-item>
            <el-form-item label="充值金额:">
              <el-input v-model="form.pay"></el-input>
            </el-form-item>
            <el-form-item label="备注:">
              <el-input v-model="form.note"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary">充值</el-button>
            </el-form-item>
          </el-form>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
import Title from "@/components/Title.vue";
// import { $usageList } from "@/api/index.js";

export default {
  name: "zhanghu",
  data() {
    return {
      form: {
        pay: "",
        note: "",
      },
    };
  },
  components: {
    Title,
  },
};
</script>

<style lang="scss" scoped>
.title-bottom {
  margin-top: 10px;
  padding: 10px 40px;
  background: #fff;
}
.title-bottom p {
  margin-bottom: 5px;
  font-size: 14px;
}

.center {
  width: 100%;
  margin-top: 15px;
}

a {
  text-decoration: none;
  color: #49a3ff;
  font-size: 14px;
}

.title-bottom i {
  font-size: 18px;
  color: #ffa833;
}

.msg {
  margin-bottom: 20px;
}

.msg span:nth-of-type(1) {
  font-weight: bold;
}

.chongzhi-block {
  width: 25%;
}
</style>
